//公有方法清单
import dvFunPrivate from './funPrivate.js'
import dvFunPublic from './funPublic.js'
import dvFunPrivate2 from './funPrivate2.js'
import dvFunPrivateForm from './funPrivateForm.js'
import dvFunPrivateGrid from './funPrivateGrid.js'
import dvFunPrivateFlow from './funPrivateFlow.js'
import dvFunPrivateEdit from './funPrivateEdit.js'

/*
* dataview 方法清单
* */
const dvFunIndex = {
  inst() {
    //绑定私有有方法
    Object.keys(dvFunPrivate).forEach(funName => {
      this[funName] = dvFunPrivate[funName]
    })

    //绑定私有有方法
    Object.keys(dvFunPrivate2).forEach(funName => {
      this[funName] = dvFunPrivate2[funName]
    })

    //绑定私有有方法
    Object.keys(dvFunPrivateForm).forEach(funName => {
      this[funName] = dvFunPrivateForm[funName]
    })
    //绑定私有有方法
    Object.keys(dvFunPrivateGrid).forEach(funName => {
      this[funName] = dvFunPrivateGrid[funName]
    })

    //绑定私有有方法
    Object.keys(dvFunPrivateFlow).forEach(funName => {
      this[funName] = dvFunPrivateFlow[funName]
    })

    //绑定私有有方法
    Object.keys(dvFunPrivateEdit).forEach(funName => {
      this[funName] = dvFunPrivateEdit[funName]
    })

    //绑定公有方法
    Object.keys(dvFunPublic).forEach(funName => {
      this[funName] = dvFunPublic[funName]
    })

    return this
  }
}

export default dvFunIndex
